﻿/*================================================================================================
     TASK 12:                                                 {Primitive-Data-Types-and-Variables}
     Find online more information about ASCII (American Standard Code for Information Interchange) 
     and write a program that prints the entire ASCII table of characters on the console.
 ===============================================================================================*/

using System;
using System.Text;
using System.IO;



class OutputAllANCII
{
    static void Main()
    {
        //File.WriteAllText("outInC#.txt","2132132112");Проба за записване във файл
        Console.OutputEncoding = Encoding.UTF8;
        Console.WriteLine("\t\t\t******************************");
        Console.WriteLine("\t\t\t\tASCII Symbols:");
        Console.WriteLine("\t\t\t******************************");
        
        for (int i = 0; i <= 127; i++)
        {
            char symbol = (char)i;

            
            Console.Write("{0}-{1}\t", symbol, i);
        }

        Console.WriteLine();
        Console.WriteLine("\t\t\t***********************************");
        Console.WriteLine("\t\t\t\tExtend ASCII Symbols:");
        Console.WriteLine("\t\t\t***********************************");
        
        for (int i = 128; i <= 255; i++)
        {
            char symbol = (char)i;
            
            Console.Write("{0}-{1}\t", symbol, i);
        }

        
    }
}

